#pragma once
#include <iostream>
#include <string>
#include <cstring>
#include <cstdlib>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "Log.hpp"

using namespace LogModule;

enum ExitCode{
	SUCESS = 0,
	USAGE_ERR,
	SOCKET_ERR,
	BIND_ERR,
	LISTEN_ERR,
	FORK_ERR,
	CONNECT_ERR,
	ACCEPT_ERR
};

#define CHAGNGE_PTR(_addr) ((struct sockaddr*)&_addr)